<template>
  <div class="content">
    <div class="title_content">
      <div class="title_line"></div>
      <span class="title">附近美食</span>
    </div>
    <div class="food_list_content">
      <div class="food_item" v-for="item in list">
        <div class="food_image">
        </div>
        <div class="food_bottom_content">
          <div class="food_title_content">
            全莆田就这么一家能吃 到正宗的福州鱼丸了
          </div>
          <text class="comment_text">环境好，服务好</text>
          <div class="abount_food_conent">
            <span class="abount_food_text">91%好评</span>
            <span class="abount_food_line"></span>
            <span class="abount_food_text">半年售655</span>
            <span class="abount_food_line"></span>
            <span class="abount_food_text">722m</span>
          </div>
          <div class="price_content">
            <span class="prcie_icon">¥</span>
            <span class="prcie_text">32</span>
            <span class="old_price">¥40</span>
            <span class="discount_text">8.0折</span>
          </div>
        </div>
      </div>
    </div>
  </div>

</template>

<script>
  export default {
    name: 'foodList',
    data(){
      return{
        list:[1,1,1,1,1]
      }
    }
  }
</script>

<style scoped>
  /* pages/index/component/foodList/foodList.wxss */
  .content{
    /* margin-top: 11px; */
  }
  .title_content{
    background-color: white;
    padding-left: 10px;
    padding-top: 12px;
    padding-bottom: 12px;
    box-sizing: border-box;
    width: 100%;
    display: flex;
    align-items: center;
  }
  .title_line{
    width: 3px;
    height: 18.5px;
    background: #A92B23;
  }
  .title{
    font-size: 12px;
    font-family: SourceHanSansCN;
    font-weight: bold;
    color: #A92B23;
    line-height: 11.5px;
    margin-left: 8.5px;
  }
  .food_list_content{
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding-top: 10px;
    padding-right: 10px;
    padding-left: 10px;
    padding-bottom: 15px;
  }
  .food_item{
    width: 173.5px;
    /* height: 539px; */
    box-shadow: 0 1px 2px rgba(0, 0, 0, .12), 0 0 3px rgba(0, 0, 0, .04);
    background: #FFFFFF;
    border-radius: 6.5px;
    margin-bottom: 6.5px;
  }
  .food_image{
    width: 173.5px;
    height: 152.5px;
    border-top-left-radius: 6.5px;
    border-top-right-radius: 6.5px;
    background-color: teal;
  }
  .food_bottom_content{
    padding-left:17.5px;
    padding-top: 9.5px;
    padding-right: 17.5px;
    padding-bottom: 10px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;

    /* align-items: flex-start; */
  }
  .food_title{
    font-weight: bold;
    font-size: 13.5px;
    line-height: 13.5px;
  }
  .food_title_content{
    font-weight: bold;
    font-size: 13.5px;
    text-overflow: -o-ellipsis-lastline;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
  }
  .comment_text{
    font-size: 10px;
    font-weight: 400;
    color: #333333;
    line-height: 10px;
    margin-top: 11.5px;
  }

  .abount_food_conent{
    display: flex;
    margin-top: 5px;
    align-items: center;
  }
  .abount_food_text{
    font-size: 10px;
    font-family: SourceHanSansCN;
    font-weight: 400;
    color: #999999;
  }
  .abount_food_line{
    width: 1px;
    margin-left: 3.5px;
    margin-right: 3.5px;
    height: 11.5px;
    background: #999999;
    border-radius: 1px;
  }
  .price_content{
    display: flex;
    align-items: flex-end;
    margin-top: 6.5px;

  }
  .prcie_icon{
    font-size: 11px;
    color: #A92B23;
    font-weight: 500;
    line-height: 20px;
    margin-right:4px;
  }
  .prcie_text{
    font-size: 18.5px;
    font-weight: bold;
    color: #A92B23;
  }
  .old_price{
    text-decoration:line-through;
    font-size: 10px;
    font-weight: 400;
    color: #999999;
    line-height: 15.5px;
    margin-left: 4px;
    margin-right: 4px;
  }
  .discount_text{
    padding: 1.5px 6.5px 1.5px 6.5px;
    color: #A92B23;
    font-size: 10px;
    border: 1px solid #A92B23;
    border-radius: 2px;
    margin-bottom: 2.5px;
  }


</style>
